package com.zmj;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
/**
 * @author zmj
 * @date 2021-03-26 14:48
 */
@EnableAsync
@EnableCaching
@SpringBootApplication
@MapperScan("com.zmj.mapper")
public class Application {
    public static void main(String[] args) {
        System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");//log4j2全异步日志配置
        SpringApplication.run(Application.class, args);
    }
}
